import request from '@/utils/request'

// 查询巡检计划列表
export function listPlanIns(query) {
  return request({
    url: '/repair/planIns/list',
    method: 'get',
    params: query
  })
}

// 查询巡检计划详细
export function getPlanIns(planId) {
  return request({
    url: '/repair/planIns/' + planId,
    method: 'get'
  })
}

// 新增巡检计划
export function addPlanIns(data) {
  return request({
    url: '/repair/planIns',
    method: 'post',
    data: data
  })
}

// 修改巡检计划
export function updatePlanIns(data) {
  return request({
    url: '/repair/planIns',
    method: 'put',
    data: data
  })
}

// 删除巡检计划
export function delPlanIns(planId) {
  return request({
    url: '/repair/planIns/' + planId,
    method: 'delete'
  })
}
